package util;

import java.util.Calendar;
import java.util.Date;
/*生成 商机、运价、广告 Code*/
public class CodeCreate {
	public static String createShangjiCode(int userid,Date date) {
		String code=String.valueOf(date.hashCode())+String.valueOf(userid);
		code="SJ"+code.substring(2,8);
		return code;
	}
	public static String createYunjiaCode(int userid,Date date) {
		String code=String.valueOf(date.hashCode())+String.valueOf(userid);
		code="YJ"+code.substring(2,8);
		return code;
	}
}
